//
//  LoginLBViewController.m
//  QT
//
//  Created by 甘世清 on 2024/10/15.
//

#import "LoginLBViewController.h"
#import "LoginViewController.h"
@interface LoginLBViewController ()
@property (nonatomic , strong) SDCycleScrollView * cycleScrollview;
@end

@implementation LoginLBViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [HttpTool post:@"https://www.baidu.com" paramDic:[NSMutableDictionary new] successBlock:^(BaseModel * _Nonnull httpModel) {
        
    } andFailBloc:^(BaseModel * _Nonnull httpModel, NSError * _Nullable error) {
        
    }];
}

- (void)SQ_UIViewForSelfView{
    [self.view addSubview:self.cycleScrollview];
    [self.cycleScrollview mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.view);
    }];
    self.cycleScrollview.imageURLStringsGroup = @[@"login1",@"login2",@"login3"];
    
    UIButton * btn4 = [UIButton buttonWithType:UIButtonTypeCustom];
     [btn4 addTarget:self action:@selector(SQ_RootVC) forControlEvents:UIControlEventTouchUpInside];
    btn4.mm_acceptEventInterval = 3;
    btn4.backgroundColor = UIColor.clearColor;
     [self.view addSubview:btn4];
    [btn4 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self.view);
        make.width.mas_equalTo(SCREEN_WIDETH-60);
        make.height.mas_equalTo(120);
        make.bottom.equalTo(self.view.mas_bottom).offset(-FootHeight-20);
    }];
}
-(void)SQ_RootVC{
    LoginViewController * vc = [[LoginViewController alloc]init];
    UINavigationController * nav = [[UINavigationController alloc]initWithRootViewController:vc];
    [self.view.window setRootViewController:nav];
    [Manager SQ_SetObject:@"LB" FormKey:@"LB"];
}

-(SDCycleScrollView*)cycleScrollview{
    if (!_cycleScrollview) {
        _cycleScrollview = [[SDCycleScrollView alloc]initWithFrame:CGRectZero];
        _cycleScrollview.backgroundColor = UIColor.clearColor;
        _cycleScrollview.bannerImageViewContentMode = UIViewContentModeScaleAspectFit;
        _cycleScrollview.clipsToBounds = YES;
        _cycleScrollview.pageControlStyle = SDCycleScrollViewPageContolStyleNone;
        _cycleScrollview.autoScrollTimeInterval = 3;
        _cycleScrollview.currentPageDotColor = SQColor333333;
       
    }
    return _cycleScrollview;
}
@end
